package com.mm.base.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.context.annotation.Configuration;


/**
 * 描述: Quartz 执行类(业务逻辑)
 *
 * @author: yanglin
 * @Date: 2021-07-27-9:17
 * @Version: 1.0
 */
@Slf4j
@Configuration
public class ScheduledJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) {
        log.info("schedule job is running taskId:{} 执行", jobExecutionContext.getTrigger().getJobDataMap().get("taskId"));
    }
}
